<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title></title>
	<style type="text/css">
		span{
			text-align: center;
			width: 100px;
			display: inline-block;
			padding: 5px 10px;
			border: 1px solid #ccc;
			box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
			cursor: pointer;
		}
		span:hover{
			background-color: #000;
			color: #fff;
		}
	</style>
</head>
<body>
<script type="text/javascript">
    for (let i = 1; i <=9; i++) {
		for (let j = 1; j <= i; j++) {
			document.write(` <span>${j} x ${i} = ${i*j} </span>`)
		}
		document.write("<br>")
	}
</script>
</body>
</html>